#!/usr/bin/env bash

####复制老公司流程,影响的数据库表有：tb_paas_process_template
curl http://pt2jobs.xbongbong.com.cn/pro/v1/script/process/copyTemplate -X POST -H 'Content-type: application/json' -d '{"corpid":"dingf6576c4f7359fd1f","userId":"manager7218","corpidList":[],"platform":"web","frontDev":"1","xbbCode":"123456","businessType":1406}'

####将审批中的入库单 出库单类型type复制到外面来 影响的数据库表有：tb_paas_process_task tb_paas_process_data
curl http://pt2jobs.xbongbong.com.cn/pro/v1/script/process/copyProcessType -X POST -H 'Content-type: application/json' -d '{"corpid":"dingf6576c4f7359fd1f","userId":"manager7218","corpidList":[],"platform":"web","frontDev":"1","xbbCode":"123456"}'

####根据type刷tb_saas_instock的appId,menu_id,form_id 需等待菜单初始化完成 影响的数据库表有：tb_saas_instock
curl http://pt2jobs.xbongbong.com.cn/pro/v1/script/product/fixStockFormData -X POST -H 'Content-type: application/json' -d '{"corpid":"dingf6576c4f7359fd1f","userId":"manager7218","corpidList":[],"platform":"web","frontDev":"1","xbbCode":"123456","stockType":1}'

####根据type刷tb_saas_outstock的appId,menu_id,form_id 需等待菜单初始化完成 影响的数据库表有：tb_saas_outstock
curl http://pt2jobs.xbongbong.com.cn/pro/v1/script/product/fixStockFormData -X POST -H 'Content-type: application/json' -d '{"corpid":"dingf6576c4f7359fd1f","userId":"manager7218","corpidList":[],"platform":"web","frontDev":"1","xbbCode":"123456","stockType":2}'

####将原先的1401，1501替换为1404，1504，1507，1505等具体的出入库单类型 影响的数据库表有：tb_chart
curl http://pt2jobs.xbongbong.com.cn/pro/v1/script/product/fixBiStockChart -X POST -H 'Content-type: application/json' -d '{"corpid":"dingf6576c4f7359fd1f","userId":"manager7218","corpidList":[],"platform":"web","frontDev":"1","xbbCode":"123456"}'

####更新是否还能退料入库的标识 HAS_RETURNED_MATERIEL 影响的数据库表有：tb_saas_production_order
curl http://pt2jobs.xbongbong.com.cn/pro/v1/script/product/fixProductionOrderReturnedFlag -X POST -H 'Content-type: application/json' -d '{"corpid":"dingf6576c4f7359fd1f","userId":"manager7218","corpidList":[],"platform":"web","frontDev":"1","xbbCode":"123456"}'

#### 影响的数据库表有：tb_paas_menu
curl http://pt2jobs.xbongbong.com.cn/pro/v1/script/module/addStockMenu -X POST -H 'Content-type: application/json' -d '{"corpid":"dingf6576c4f7359fd1f","userId":"manager7218","corpidList":[],"platform":"web","frontDev":"1","xbbCode":"123456"}'

#### 产品优化字段解释更改 todo
curl http://pt2jobs.xbongbong.com.cn/pro/v1/script/field/fixProductForm -X POST -H 'Content-type: application/json' -d '{"corpid":"dingf6576c4f7359fd1f","userId":"manager7218","corpidList":[],"platform":"web","frontDev":"1","xbbCode":"123456"}'

#### 采购退货出库刷上游refId
curl http://pt2jobs.xbongbong.com.cn/pro/v1/script/product/addRefProductIdToReturnPurchaseOutstock -X POST -H 'Content-type: application/json' -d '{"corpid":"dingf6576c4f7359fd1f","userId":"manager7218","corpidList":[],"platform":"web","frontDev":"1","xbbCode":"123456"}'

#### 退货退款入库刷上游refId
curl http://pt2jobs.xbongbong.com.cn/pro/v1/script/product/addRefProductIdToRefundInstock -X POST -H 'Content-type: application/json' -d '{"corpid":"dingf6576c4f7359fd1f","userId":"manager7218","corpidList":[],"platform":"web","frontDev":"1","xbbCode":"123456"}'

#### 菜单解释
curl http://pt2jobs.xbongbong.com.cn/pro/v1/script/stockBill/addStockBillMenu -X POST -H 'Content-type: application/json' -d '{"corpid":"dingf6576c4f7359fd1f","userId":"manager7218","corpidList":[],"platform":"web","frontDev":"1","xbbCode":"123456"}'

